<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!--     <link rel="shortcut icon" href="../../assets/ico/favicon.png"> -->

<title>SGI</title>

<!-- Bootstrap core CSS -->
<link href="css/bootstrap-3.1.1.css" rel="stylesheet" media="screen">

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
      <script src="../../assets/js/html5shiv.js"></script>
      <script src="../../assets/js/respond.min.js"></script>
    <![endif]-->
</head>

<body>

	<%@include file="header.jsp"%>

	<div class="container">

		<p>
			<strong>Mantenimiento de Centros de Formacion &gt; Editar</strong>
		</p>

		<form id="form1" name="form1" method="post" enctype="multipart/form-data"
			action="CentroFormacionModificarServlet">
			<%@page import="com.jnetwork.modelo.CentroFormacion;"%>
			<%
				CentroFormacion vo = (CentroFormacion) request.getAttribute("vo");
			%>

			<table width="300" height="104" border="1" cellpadding="0"
				cellspacing="0">
				<tr>
					<td></td>
					<td><label> <input type="hidden" name="id" id="id" value="<%=vo.getId()%>" />
					</td>
				</tr>
				<tr>
					<td>Nombre:</td>
					<td><label> <input type="text" name="nombre" required="required"
							id="nombre" value="<%=vo.getNombre()%>" />
					</label></td>
				</tr>
				<tr>
					<td>Tipo:</td>
					<td><label> <select name="tipo" id="tipo" required="required">
								<option value="" class='nombre'></option>
								<option
									<%if (vo.getTipo().equals("Universidad"))
				out.print("selected");%>
									value="Universidad" class='nombre'>Universidad</option>
								<option
									<%if (vo.getTipo().equals("Instituto"))
				out.print("selected");%>
									value="Instituto" class='nombre'>Instituto</option>
						</select>
					</label></td>
				</tr>
				<tr>
					<td>URL:</td>
					<td><label> <input type="text" name="url" id="url" required="required"
							value="<%=vo.getUrl()%>" />
					</label></td>
				</tr>
				<tr>
					<td>Logo:</td>
					<td><label> <input type="file" name="logo" id="logo"/> 
							<input type="hidden" name="logo_old" id="logo_old" 
							value="<%=vo.getLogo()%>"/>
							<br />
							<img class="img-circle"
							style="width: 50px; height: 50px;"
							src="img/<%out.print(vo.getLogo());%>">
					</label></td>
				</tr>
				<tr>
					<td colspan="2"><input type="submit" value="Guardar" /> <input
						type="button" value="Regresar"
						onclick="window.location='centro_formacion_buscar.jsp' " /></td>
				</tr>
			</table>
			<p>&nbsp;</p>
		</form>

		<!-- Site footer -->
		<div class="footer">
			<p>&nbsp;</p>
			<p>&copy; JNetwork 2014</p>
		</div>

	</div>
	<!-- /container -->




	<!-- Bootstrap core JavaScript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->

	<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
	<script src="js/jquery-1.10.2.js"></script>
	<!-- Include all compiled plugins (below), or include individual files as needed -->
	<script src="js/bootstrap-3.1.1.js"></script>
</body>
</html>